<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<title>Site Administration</title>
    <link rel="stylesheet" href="<?php echo get_installed_path() ?>/css/forms.css" type="text/css" media="screen" title="no title" charset="utf-8" />
    <link rel="stylesheet" href="<?php echo get_installed_path() ?>/css/admin.css" type="text/css" media="screen" title="no title" charset="utf-8" />
    
</head>
<body>
<?php

    if ( !empty($content) )
    {
        echo form_tag('edit_content_area').
             hidden_field_tag('id',$content['id']).
             hidden_field_tag('page_id',$content['page_id']).
             hidden_field_tag('action','edit_content').
             text_area_tag('content',$content['content'],array('size'=>'50x25','id'=>'content')).'<br>'.
             content_tag('p',submit_tag('Save Edit').
                            submit_tag('Cancel Edit',
                                array(
                                    'confirm'=>'Are you sure you want to cancel the edit? All your changes will not be saved.',
                                    'name'=>'cancel',
                                    'class'=>'submit_delete'
                                    )
                                      )
                        ).
             end_form_tag();
    }
    create_editor_instance('content',array('all_elements'=>true));
?>
</body>
</html>